<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        window.onerror = function (errorMessage, scriptURI, lineNumber, columnNumber, errorObj) {
            console.log("错误信息：", errorMessage);
            console.log("出错文件：", scriptURI);
            console.log("出错行号：", lineNumber);
            console.log("出错列号：", columnNumber);
            console.log("错误详情：", errorObj);
        }
    </script>
    <script type="text/javascript" src="error.js" crossorigin></script>
</head>

<body>

</body>

</html>